/* Orbas:
 *     A open source CORBA Specification implementation from Huihoo.
 *
 * Copyright 2002-2003 Huihoo.org, Inc. All Right Reserved.
 *
 * This software is licensed under LGPL license.
 * See terms of license at gnu.org.
 *
 * For more information, visit:
 *
 * http://www.huihoo.org/orbas
 */

package org.huihoo.orbas.poa.policy;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: <a href="http://www.huihoo.org/orbas">huihoo.org/orbas</a></p>
 * @author <a href="mailto:cocia@163.com">Cocia Lin</a>
 * @version 1.0
 */

import org.omg.CORBA.Policy;
import org.omg.PortableServer.ServantRetentionPolicy;
import org.omg.PortableServer.ServantRetentionPolicyValue;

public class ServantRetentionPolicyImpl extends org.omg.CORBA.LocalObject
		implements ServantRetentionPolicy {
	// ~
	private ServantRetentionPolicyValue value;

	public ServantRetentionPolicyImpl(ServantRetentionPolicyValue value) {
		this.value = value;
	}

	public ServantRetentionPolicyValue value() {
		return value;
	}

	public int policy_type() {
		return org.omg.PortableServer.SERVANT_RETENTION_POLICY_ID.value;
	}

	public Policy copy() {
		return new ServantRetentionPolicyImpl(value());
	}

	public void destroy() {

	}

}